
package com.hs.exception;

import com.hs.HsMessage;


/**
 * Custom exception class for JAMWiki servlet errors.
 */
public class HsException extends Exception {
	private final HsMessage hsMessage;

	/**
	 * Constructor for a HsException containing a Wiki message value.
	 */
	public HsException(HsMessage hsMessage) {
		super();
		this.hsMessage = hsMessage;
	}

	/**
	 * Return the HsException object associated with this exception.
	 *
	 * @return The HsException object assocated with this exception.
	 */
	public HsMessage getHsMessage() {
		return this.hsMessage;
	}
}
